package com.ruogu.codegeneration.model.dto.chathistory;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 创建对话历史请求
 *
 * @author ruogu
 */
@Data
@Schema(description = "创建对话历史请求")
public class ChatHistoryAddRequest implements Serializable {

    /**
     * 消息内容
     */
    @Schema(description = "消息内容", example = "Hello, AI!")
    private String message;

    /**
     * 消息类型
     */
    @Schema(description = "消息类型", example = "user", allowableValues = {"user", "ai"})
    private String messageType;

    /**
     * 错误信息
     */
    @Schema(description = "错误信息（AI 回复失败时记录）", example = "API 调用失败")
    private String errorMessage;

    /**
     * 应用ID
     */
    @Schema(description = "应用ID", example = "1")
    private Long appId;

    @Serial
    private static final long serialVersionUID = 1L;
}
